//
//  TGGaodeLocation.h
//  TongGuanLease
//
//  Created by 张奇 on 2022/9/5.
//

#import <Foundation/Foundation.h>
#import <AMapLocationKit/AMapLocationKit.h>
#define LocationTimeout 3.5
#define ReGeocodeTimeout 3.5
NS_ASSUME_NONNULL_BEGIN

@interface TGGaodeLocation : NSObject <AMapLocationManagerDelegate>

@property (nonatomic, strong) AMapLocationManager *locationManager;

@property (nonatomic, copy) AMapLocatingCompletionBlock completionBlock;


@property (nonatomic, copy) AMapLocatingCompletionBlock LocationBlock;
+ (instancetype)shareInstance;

+ (NSString *)distanceOfPoint:(CLLocationCoordinate2D)location1 point2:(CLLocationCoordinate2D)location2;
/***  带反编码*/
- (void)reGeocodeAction:(AMapLocatingCompletionBlock)block;
/***  不带反编码*/
- (void)geocodeAction:(AMapLocatingCompletionBlock)block;

// 设备保养定位
- (void)maintenanceGeocodeAction:(AMapLocatingCompletionBlock)block;
+ (NSString *)maintenancedistanceOfPoint:(CLLocation*)location1 point2:(CLLocationCoordinate2D)location2;
@end

NS_ASSUME_NONNULL_END
